package com.github.lee.core.common


/**
 * 效验手机号码是否合法的正则表达式
 */
const val REG_MOBILE = "^[1][3,4,5,7,8][0-9]{9}$"
/**邮箱正则*/
const val REG_EMAIL = "^[a-zA-Z0-9_.-]+@[a-zA-Z0-9-]+(\\.[a-zA-Z0-9-]+)*\\.[a-zA-Z0-9]{2,6}\$"

/**
 * 密码合法性效验的正则表达式，6~18位任意非空字符串
 */
const val REG_PASSWORD = "^[a-zA-Z0-9]{6,18}$"
/**
 * 字符串是否是网址的正则匹配
 */
const val REG_URL =
    "^(http|ftp|https):\\/\\/[\\w\\-_]+(\\.[\\w\\-_]+)+([\\w\\-\\.,@?^=%&amp;:/~\\+#]*[\\w\\-\\@?^=%&amp;/~\\+#])?$"

/**
 * 是否是中文的正则表达式匹配
 */
const val REG_CHINESE = "^[\u4e00-\u9fa5]+$"